/*
            Author : Nguyen Van Ty
            Email  : ngvanty03@gmail.com
            Date   : 12/26/2010 
           
            */


using System;
using System.Collections.Generic;
using System.Text;


namespace BusinessObject
{
    /// <summary>
    /// This is PhieuBanHang object, it is object of BusinessObject table.
    /// </summary>
    public class PhieuBanHang
    {
        #region fields
        private Int64 maPhieuBanHang;
        private DateTime ngayBan;
        private string nguoiBan;
        private double tongGiaTien;
        private int maKho;
        private int maKhachHang;
        private string nguoiLapPhieu;
        private DateTime ngayLapPhieu;
        private Paging objPaging;

        private SortOrder objSortOrder;

        private string condition;

        private int toltalRow;

        private DateTime sysCreatedDate;
        private string sysCreatedBy;
        private DateTime sysUpdatedDate;
        private string sysUpdatedBy;
        #endregion fields

        #region constructor
        /// <summary>
        /// Define default constructor for PhieuBanHang Object
        /// </summary>
        public PhieuBanHang()
        {
            this.maPhieuBanHang = Int64.MinValue;
            this.ngayBan = DateTime.MinValue;
            this.nguoiBan = string.Empty;
            this.tongGiaTien = double.MinValue;
            this.maKho = int.MinValue;
            this.maKhachHang = int.MinValue;
            this.nguoiLapPhieu = string.Empty;
            this.ngayLapPhieu = DateTime.MinValue; this.objPaging = new Paging();
            this.objSortOrder = new SortOrder();
            this.condition = string.Empty;
            this.toltalRow = 0;
            this.sysCreatedDate = DateTime.MinValue;
            this.sysCreatedBy = string.Empty;
            this.sysUpdatedDate = DateTime.MinValue;
            this.sysUpdatedBy = string.Empty;
        }
        #endregion constructor
        #region properties
        public DateTime SysUpdatedDate
        {
            get { return this.sysUpdatedDate; }
            set { this.sysUpdatedDate = value; }
        }
        public string SysUpdatedBy
        {
            get { return this.sysUpdatedBy; }
            set { this.sysUpdatedBy = value; }
        }
        public DateTime SysCreatedDate
        {
            get { return this.sysCreatedDate; }
            set { this.sysCreatedDate = value; }
        }
        public string SysCreatedBy
        {
            get { return this.sysCreatedBy; }
            set { this.sysCreatedBy = value; }
        }

        /// <summary>
        /// Define MaPhieuBanHang Property
        /// </summary>
        public Int64 MaPhieuBanHang
        {
            get { return this.maPhieuBanHang; }
            set { this.maPhieuBanHang = value; }
        }
        /// <summary>
        /// Define NgayBan Property
        /// </summary>
        public DateTime NgayBan
        {
            get { return this.ngayBan; }
            set { this.ngayBan = value; }
        }
        /// <summary>
        /// Define NguoiBan Property
        /// </summary>
        public string NguoiBan
        {
            get { return this.nguoiBan; }
            set { this.nguoiBan = value; }
        }
        /// <summary>
        /// Define TongGiaTien Property
        /// </summary>
        public double TongGiaTien
        {
            get { return this.tongGiaTien; }
            set { this.tongGiaTien = value; }
        }
        /// <summary>
        /// Define MaKho Property
        /// </summary>
        public int MaKho
        {
            get { return this.maKho; }
            set { this.maKho = value; }
        }
        /// <summary>
        /// Define MaKhachHang Property
        /// </summary>
        public int MaKhachHang
        {
            get { return this.maKhachHang; }
            set { this.maKhachHang = value; }
        }
        /// <summary>
        /// Define NguoiLapPhieu Property
        /// </summary>
        public string NguoiLapPhieu
        {
            get { return this.nguoiLapPhieu; }
            set { this.nguoiLapPhieu = value; }
        }
        /// <summary>
        /// Define NgayLapPhieu Property
        /// </summary>
        public DateTime NgayLapPhieu
        {
            get { return this.ngayLapPhieu; }
            set { this.ngayLapPhieu = value; }
        }
        public Paging ObjectPaging
        {
            get { return this.objPaging; }
            set { this.objPaging = value; }
        }
        public SortOrder ObjectSortOrder
        {
            get { return this.objSortOrder; }
            set { this.objSortOrder = value; }
        }
        public string Condition
        {
            get { return this.condition; }
            set { this.condition = value; }
        }
        public int ToltalRow
        {
            get { return this.toltalRow; }
            set { this.toltalRow = value; }
        }

        #endregion properties
    }
}